gpsbabel.git
6 years agoclang-tidy readability-implicit-bool-conversion on gui.
tsteven4 [Sun, 3 Mar 2019 17:29:24 +0000 (10:29 -0700)]
clang-tidy readability-implicit-bool-conversion on gui.

6 years agoclang-tidy modernize-use-nullptr on gui.
tsteven4 [Sun, 3 Mar 2019 17:26:27 +0000 (10:26 -0700)]
clang-tidy modernize-use-nullptr on gui.

6 years agoclang-tidy readability-delete-null-pointer on gui.
tsteven4 [Sun, 3 Mar 2019 17:21:19 +0000 (10:21 -0700)]
clang-tidy readability-delete-null-pointer on gui.

6 years agoclang-tidy readability-container-size-empty on gui.
tsteven4 [Sun, 3 Mar 2019 17:20:12 +0000 (10:20 -0700)]
clang-tidy readability-container-size-empty on gui.

6 years agoclang-tidy readability-redundant-member-init on gui.
tsteven4 [Sun, 3 Mar 2019 17:17:27 +0000 (10:17 -0700)]
clang-tidy readability-redundant-member-init on gui.

6 years agoclang-tidy performance-unnecessary-value-param on gui.
tsteven4 [Sun, 3 Mar 2019 17:16:01 +0000 (10:16 -0700)]
clang-tidy performance-unnecessary-value-param on gui.

6 years agoclang-tidy hicpp-use-equals-default on gui.
tsteven4 [Sun, 3 Mar 2019 17:14:25 +0000 (10:14 -0700)]
clang-tidy hicpp-use-equals-default on gui.

6 years agoreformat gui with astyle. (#311)
tsteven4 [Sun, 3 Mar 2019 14:39:52 +0000 (07:39 -0700)]
reformat gui with astyle. (#311)

6 years agoRefactor application packaging for linux/macos. (#310)
tsteven4 [Thu, 28 Feb 2019 14:14:13 +0000 (07:14 -0700)]
Refactor application packaging for linux/macos. (#310)

* Refactor application packaging for linux/macos.

Packaging of the GUI for linux/macos can now be done
either by building the make target "package" created by
"qmake app.pro", or by executing a bash script "package_app".
Packaging with the legacy configure flow will build the
package target.
Travis CI scripts will build the package target.

The obsolete script mac-localize is deleted.  This
functionality is included in package_app.

The obsolete script makelinuxdist.sh is deleted.  We have not
distributed a linux package in some time.  Furthermore this
scirpt hadn't worked in some time.  package_app does not
create a standalone linux app, however it packages all the
bits from GPSBabel in GPSBabelFE.  This makes creating a
Docker app, which includes the Qt installation, for GPSBabel easy.

Merge relevant Qt .qm files into one qt_xx.qm file for each language
as recommended by Qt.
Deploy these meged .qm files with linux/macos builds.
Since Qt5 we only deployed the meta catalog, but not it's
dependencies. This should have led to the dependencies not
being available without Qt being installed.

gpsbabel.qm and gpsbabelfe.qm are no longer included in the packaged
apps for windows/linux/macos, as it should be.

6 years agoMerge pull request #294 from madam7/master
GPSBabel [Thu, 28 Feb 2019 04:14:44 +0000 (22:14 -0600)]
Merge pull request #294 from madam7/master

skytraq updates: prepare gps week rollover, and an older bugfix

6 years agoObject cleanup (#307)
tsteven4 [Wed, 27 Feb 2019 14:25:14 +0000 (07:25 -0700)]
Object cleanup (#307)

* elminiate some early program exits.

exits without cleanup make it harder to find memory leaks.

fix a few leaks.

enhance random format to support reading real time position data.

correct some sign related warnings.

* use invariant generator for random format.

* make compilers happy with random.

clang doesn't like:
  random.cc:61:42: note: read of non-constexpr variable 'generator' is not allowed in a constant expression
    constexpr double scalefactor = 1.0 / (*generator).max();

msvc doesn't like:
  warning C4100: 'fname': unreferenced formal parameter

* catch main.cc up with master manually.

6 years agoChange diff and terrain back to doubles in geo
GPSBabel [Mon, 25 Feb 2019 18:34:30 +0000 (12:34 -0600)]
Change diff and terrain back to doubles in geo

Not part of official geo format that's widely used; apparently only used by rickrich's geo tools.

6 years agoQt 5.12.1 and valgrind on Linux (#306)
tsteven4 [Thu, 21 Feb 2019 17:13:17 +0000 (10:13 -0700)]
Qt 5.12.1 and valgrind on Linux (#306)

set an environmental variable when running valgrind to disable QRegularExpressions use of JIT which causes problems for valgrind. The release build of Qt 5.12.1 uses JIT by default. The debug build does not.

warn when running older version of valgrind that don't handle RDRAND instructions used by newer versions of Qt such as 5.12.1.

support multiple docker images in travis.

create a travis docker image with Qt 5.12.1.

7 years agodo parallel builds for travis macos. (#305)
tsteven4 [Mon, 18 Feb 2019 23:23:40 +0000 (16:23 -0700)]
do parallel builds for travis macos. (#305)

7 years agoSet Qt version floor at 5.9 (#304)
tsteven4 [Sat, 16 Feb 2019 20:41:25 +0000 (13:41 -0700)]
Set Qt version floor at 5.9 (#304)

* move Qt floor to 5.9.

* update coverage build for Qt archive naming.

* update all travis builds to xenial.

trusty is EOL 4/2019.

* avoid 5.12.1 on linux CI.

* Revert "avoid 5.12.1 on linux CI."

This reverts commit b86212123cda9d7c57f212f3baf0f05bc3121ee5.

* avoid 5.12.1 on linux CI.

7 years agoParallel test (#303)
tsteven4 [Sat, 16 Feb 2019 19:05:43 +0000 (12:05 -0700)]
Parallel test (#303)

* run vtesto jobs in parallel.

with the configure flow and "make check-vtesto".
This will be utilized on travis.

* add missing gitignore for new valgrind logs.

7 years agofix pcx test to check output it generates! (#302)
tsteven4 [Sat, 16 Feb 2019 13:05:31 +0000 (06:05 -0700)]
fix pcx test to check output it generates! (#302)

7 years agoupdate appveyor for Qt 5.12.1 (#301)
tsteven4 [Fri, 15 Feb 2019 18:07:38 +0000 (11:07 -0700)]
update appveyor for Qt 5.12.1 (#301)

* update appveyor builds.

archive msvc2017,nmake, Qt 5.12,x86.
switch all msvc2017 builds to Qt 5.12.

* work around qmake 5.12.1 bug.

reorder builds so release candidate is done first.

7 years agoarchive macos with Qt 5.12.1 (#300)
tsteven4 [Fri, 15 Feb 2019 01:33:01 +0000 (18:33 -0700)]
archive macos with Qt 5.12.1 (#300)

instead of 5.9.7.

7 years agoMerge pull request #293 from tsteven4/trackf
GPSBabel [Thu, 14 Feb 2019 20:11:52 +0000 (14:11 -0600)]
Merge pull request #293 from tsteven4/trackf

modernization of track filter

7 years agoMerge pull request #271 from gromit1811/fit-trkseg
GPSBabel [Thu, 14 Feb 2019 20:07:24 +0000 (14:07 -0600)]
Merge pull request #271 from gromit1811/fit-trkseg

Start new track segments on Garmin Fit timer events (start/stop/...)

7 years agoRelocate xcsv format functions. (#297)
tsteven4 [Thu, 14 Feb 2019 13:35:27 +0000 (06:35 -0700)]
Relocate xcsv format functions. (#297)

Many funtions for the xcsv format were in csv_util.cc
instead of xcsv.cc.  This commit moves the xcsv format
specific functions to xcsv.cc, and leaves the possibly
shared utility functions in csv_util.cc.

xcsv.h is added to communicate shared xcsv style handling
with vecs.cc.

7 years agoAdded support for USR version 5 and 6 and corrected USR version 4 support. (#268)
BJ Kowalski [Tue, 12 Feb 2019 20:38:41 +0000 (14:38 -0600)]
Added support for USR version 5 and 6 and corrected USR version 4 support. (#268)

* Minor changes to address GCC 7.3.0 warnings generated by flag -Wunused-but-set-variable.

Moved declaraions/initialization of rp_backup and era inside #ifdef _NL_CURRENT conditionals.

* Added { ... } to for at the end of zip64local_SearchCentralDir() so that if-break statements inside for loop.

* Removed declaration and commented out references to startlat, startlon, and starttime in fit_parse_data() due to GCC 7.3.0 warning from
flag -Wunused-but-set-variable.

* Added initial support for Lowrance USR 5 and 6 formats.

* Significant changes to handle multiple USR4 versions and add USR5 and USR6 support.

* Remove extraneous debug NL when no debug specified.

* Updated USR4 reference file because of increased accuracy in converting lat/log values.

* Documentation on some ICON mappings.

* Added USR5 and USR6 to validation checks.

* Added reference files for USR5 and USR6 formats.

* Cleaned up some debug output.

* Continued work to consolidate all Lowrance USR processing into a single file.

* Eliminated lowranceusr4.cc and restuctured testing to include USR4, USR5, and USR6 formats.

* Changes associated with adding support for USR 5 and USR 6.

* Eliminated lowranceusr4.cc from build.

* Changed default Output USR Version from 4 to 2 for backward compatibilty.

* Removed USR 4 section from documentation.

* Initial update of XMLDOC for updated data formats.

* iMinor updates to parse_routes.  Added correct v4 and v5 GPX reference files.

* Documentation updates to reflect new capabilities.

* Added Route element information to document and minor code changes to match.

* Doc refinement with rewrite.

* Corrections to USR 4 output.

* Update to correct v4 gpx file.

* Checkin correct v5 gpx file.

* Removed errant NL when no debug specified.

* Resolved conflicts

* Missed this update.

* Revert "Minor changes to address GCC 7.3.0 warnings generated by flag -Wunused-but-set-variable."
at the request of tsteven4 as they have nothing to do with the expanded support.

This reverts commit fb93a19b740edae4dde3b6dcd0546f344122f70d.

* Revert "Added { ... } to for at the end of zip64local_SearchCentralDir() so that if-break statements inside for loop."
at the request of tsteven4 as they have nothing to do with the expanded support.

This reverts commit 189bbe6ea664829412c70079e9ddb9555062a12f.

* Revert "Removed declaration and commented out references to startlat, startlon, and starttime in fit_parse_data() due to GCC 7.3.0 warning from"
at the request of tsteven4 as they have nothing to do with the expanded support.

This reverts commit cc618336888c5cdb8adef87f72026a8c24eff7e8.

* Updated to remove lowranceusr4.cc per suggestion from tsteven4 to support cmake/XCLion.

* Per suggestions from tsteven4
    - deleted define SECSTORADIANS as it was not used
    - ran astylerc

* Replaced use of NULL with nullptr per tsteven4 suggestion.

* Added URLs for reference information.

* Adopted tsteven4 recommendation on eliminating compiler warning.

* Corrections to Waypoint and Trail documentation for USR 4, 5, and 6 formats.

* Address Codacy flagged issues.

* Address Codacy flagged issues.

* Address additional Codact flaged issues.

* Changed DEGREESTORADIANS define from hardcoded value to use (M_PI/180.0)

* Removed Copyright protected material and replaced with authored comments.

* Corrected altitude/depth retension coverting USR4/5/6 to USR2/3

* Added mapping of USR4/5/6 ICON numbers to text to support output to USR 2/3 format.

* Corrected generation of USR4 data file.

* Check for NULL format specific when converting USR 2/3 (colorless) to USR4 (color coded) ICONs.

* Added cases where USR 2/3 embeds color in shortname.

* Corrections to ICON translation from USR v2/3 to USR 4.

* Cleanup USR 2/3 parsing debug.

* Adopted modificatins to USR 4/5/6 time interpretation per suggestion from tsteven4.

* Adopted modificatins to USR 4/5/6 time interpretation per suggestion from tsteven4.

* Changed file header parsing back to int16 for USR format as found sample file with a stream version other than 0.  Assume this
is true for ALL USR formats until determine otherwise.

* Updated reference files after corrections to altitude and time conversion.

* Check for both "nan" and "-nan" to address compiler differences.

* Use -options instead of --options to avoid osx OS issues.

* Set altitude to "unknown_alt" when creating Waypoints from Event ICONs.
Updated reference files to encorporate "unknown_alt" change.
Corrected mis-spelling of "green"

* Change cut options from --compliment to legacy explict field list for OSX OS support.

* Applied codex patch from tsteven4 - thank you.

* Corrected interpretation of elevation in USR2/3.

* Corrected reference files and test script with changes to elevation interpretation.

* More conversions to QString conventions.
Minor correction to trail attribute parsing.

* Editorial cleanup.

* USRv6 uses trail data stream version 5 which employs int32 rather than char for attributes.

* Use invalid ICON value as method to detect HOOK2 generated USR 2/3 files.

* Cleanup time conversions.

7 years agobug fixes for xcsv reader. (#295)
tsteven4 [Sat, 9 Feb 2019 22:36:23 +0000 (15:36 -0700)]
bug fixes for xcsv reader. (#295)

For some lines data must be accumulated from several fields
in arbitrary field order.
Previously this was done with global variables.  Now a variable to
hold the accumulated data for a line is constructed/destructed for
each line.

This eliminates the possiblity of unintended communication between
lines.

This also eliminated some unintended communication between the reader
and the writer through global variables that they previously shared
(csv_track, csv_route).

An ordering sensitivty to TRACK_NEW and TRACK_NAME is removed.

For the reader, conditional allocation of route_heads is removed
from xcsv_parse_val, and centralized in xcsv_data_read.
This eliminates some undetected
memory leaks which hid as "still reachable" due to the pointer
being saved in a global variable (csv_track, csv_route).

Undesirable reading of the route_head->Q variable is
eliminated improving encapsulation.  I beleive the intent was
never to decide if the csv_track->Q was empty, i.e. it hadn't been
added to the global track_head yet.  I beleive what was desired was
to decide if csv_track had any waypoints. In any event the
centralization of route_head allocation and head addition makes new
track handling much more straight forward and robust.

The xcsv test case is enhanced to increase coverage.

7 years agoskytraq: some minor cleanup I had lying around...
Mathias Adam [Sun, 20 Jan 2019 20:16:49 +0000 (21:16 +0100)]
skytraq: some minor cleanup I had lying around...

7 years agoskytraq: rename option gps_utc_offset to gps-utc-offset, to be consistent with other...
Mathias Adam [Sun, 20 Jan 2019 20:04:11 +0000 (21:04 +0100)]
skytraq: rename option gps_utc_offset to gps-utc-offset, to be consistent with other options

7 years agoskytraq: add doc for new option gps-week-rollover
Mathias Adam [Sun, 20 Jan 2019 20:00:31 +0000 (21:00 +0100)]
skytraq: add doc for new option gps-week-rollover

7 years agoskytraq: prepare for upcoming gps week-rollover
Mathias Adam [Sat, 19 Jan 2019 12:48:46 +0000 (13:48 +0100)]
skytraq: prepare for upcoming gps week-rollover

7 years agoskytraq: Fixed rd_word() to actually return errors
Mathias Adam [Sat, 19 Jan 2019 10:09:13 +0000 (11:09 +0100)]
skytraq: Fixed rd_word() to actually return errors

7 years agoMac5120 (#283)
tsteven4 [Sat, 2 Feb 2019 22:41:52 +0000 (15:41 -0700)]
Mac5120 (#283)

* add generic qt installer for osx.

add travis builds with osx and qt 5.9.7, 5.12.0
update qtci extract-qt-installer from upstream.
add some error detection and debug to travis_install_osx, travis_intall_linux_local.

* catch qtci/install-qt up with upstream.

* try harder with early extract-qt-installer bugs on osx.

* don't source travis qt install scripts.

* fix caching for travis.

* qt installer improvements

validate installs
add debug for failed installs

* update travis osx qt 5.12 build to 5.12.1.

7 years agoStart new track segments on timer start events
Martin Buck [Tue, 13 Nov 2018 22:58:43 +0000 (23:58 +0100)]
Start new track segments on timer start events

Insert track segment separators when encountering a timer start event in a
FIT file (usually caused by manually pushing the start button). This way,
pauses in a FIT file don't appear as continuous tracks.

Also adapt reference tracks by adding suitable <trkseg> tags to please "make
check"/testo.

7 years agoMerge pull request #286 from gpsbabel/cl-cleanups
GPSBabel [Mon, 14 Jan 2019 17:31:59 +0000 (11:31 -0600)]
Merge pull request #286 from gpsbabel/cl-cleanups

Clion & related cleanups

7 years agofix leaks when deleting wpts in filters. (#292)
tsteven4 [Fri, 11 Jan 2019 17:11:25 +0000 (10:11 -0700)]
fix leaks when deleting wpts in filters. (#292)

7 years agofix trackfilter merge bug with segments.
tsteven4 [Wed, 9 Jan 2019 15:10:49 +0000 (08:10 -0700)]
fix trackfilter merge bug with segments.

enhance trackfilter test cases for better coverage.

7 years agorefactor trackfilter.
tsteven4 [Tue, 8 Jan 2019 23:09:05 +0000 (16:09 -0700)]
refactor trackfilter.

use std::sort, stable_sort instead of qsort.
use QList instead of malloc'd arrays.
minimize the use of duplicated information (track_ct, track_pts, timeless_pts
first_time, last_time), and maintain the remaining
duplicated information (track_list, a possible sorted version of my_track_head).
use auto some more.
eliminate some redundant casting.
eliminate atoi.

7 years agoin trackfilter remove redundant casts and use auto.
tsteven4 [Tue, 8 Jan 2019 19:57:11 +0000 (12:57 -0700)]
in trackfilter remove redundant casts and use auto.

7 years agotrackfilter bools and case insensitive opts.
tsteven4 [Mon, 7 Jan 2019 16:57:41 +0000 (09:57 -0700)]
trackfilter bools and case insensitive opts.

7 years agorefactor track filter.
tsteven4 [Sun, 6 Jan 2019 20:12:28 +0000 (13:12 -0700)]
refactor track filter.

user visible changes:
Previously it was possible to cause a segmentation fault (due to a double delete)
if all the tracks were filtered out by the stop and start options.
This has been corrected.

Previously UTC time was used with the title option for split operations,
but local time was used with the title option for the pack operations.
Now UTC time is always used with the title option.

Previously the split and sdistance options allowed an option value
consisting of only the units.  This was undocumented.  Now both a number
and the units are required.

Previously the split option documentation stated that units of seconds
would be used if none were specified, however the units were actually required.
The documenation is updated to reflect historical and current usage.

Previously the split and sdistance options allowed the units to precede or
follow the quantity.  The documentation stated the units must follow the
quantity.  Now the units must follow the quantity.

Previously synthesized speeds ignored the fractional part of the track point times,
now the fractional part of the track point times are used in the speed calculation.

refactoring changes:
time_t is replaced where possible by gpsbabel::DateTime or QDateTime.

option value parsing is done with QRegularExpression.

some integer types were converted to bool types.

test cases are expanded for better coverage.

7 years agoCorrected handling elevation and speed (#291)
Aslak Vaa [Mon, 31 Dec 2018 17:30:08 +0000 (18:30 +0100)]
Corrected handling elevation and speed (#291)

* Corrected handling elevation and speed

* Added reference files for testing converting fit-file from Garmin Oregon 700 to gpx-file

* Added test of converting fit-file from Garmin Oregon 700 to gpx-file

7 years agoadd include guard for src/core/optional.h (#290)
tsteven4 [Fri, 28 Dec 2018 17:14:33 +0000 (10:14 -0700)]
add include guard for src/core/optional.h (#290)

7 years agoclazy cleanup for gui (#289)
tsteven4 [Fri, 28 Dec 2018 16:16:41 +0000 (09:16 -0700)]
clazy cleanup for gui (#289)

7 years agoMerge pull request #288 from tsteven4/lat_dir_input
GPSBabel [Fri, 28 Dec 2018 00:00:15 +0000 (18:00 -0600)]
Merge pull request #288 from tsteven4/lat_dir_input

enhance xcsv reader to not ignore LAT_DIR,LON_DIR.

7 years agoMerge pull request #287 from tsteven4/lat_dir
GPSBabel [Thu, 27 Dec 2018 21:19:34 +0000 (15:19 -0600)]
Merge pull request #287 from tsteven4/lat_dir

fix up style file OFIELD option processing.

7 years agoenhance xcsv reader to not ignore LAT_DIR,LON_DIR.
tsteven4 [Thu, 27 Dec 2018 20:38:24 +0000 (13:38 -0700)]
enhance xcsv reader to not ignore LAT_DIR,LON_DIR.

this came up on [Gpsbabel-misc] Globalsat DG-500.

7 years agofix up style file OFIELD option processing.
tsteven4 [Thu, 27 Dec 2018 18:38:34 +0000 (11:38 -0700)]
fix up style file OFIELD option processing.

7 years agoMerge pull request #285 from gpsbabel/atoi
GPSBabel [Wed, 26 Dec 2018 04:07:33 +0000 (22:07 -0600)]
Merge pull request #285 from gpsbabel/atoi

Atoi: rely less on atoi, scanf, other cleanups. Safer parsing in stmsdf in particular.

7 years agoA moderately uncomfortable series of inadequately tested changes around
Robert Lipe [Sun, 23 Dec 2018 03:51:30 +0000 (21:51 -0600)]
A moderately uncomfortable series of inadequately tested changes around
signedness of types, mostly to shut hyperactive tool chains. Time will
tell if we fixed or caused more weird cases around trucations and extensions.

7 years agoMerge branch 'master' into atoi
GPSBabel [Sat, 22 Dec 2018 18:59:25 +0000 (12:59 -0600)]
Merge branch 'master' into atoi

7 years agoMerge pull request #284 from gpsbabel/cl-cleanups
GPSBabel [Sat, 22 Dec 2018 18:58:16 +0000 (12:58 -0600)]
Merge pull request #284 from gpsbabel/cl-cleanups

CodeLion-inspired and manual cleanups

7 years agoadd support for multiple urls for route headers. (#276)
tsteven4 [Thu, 20 Dec 2018 16:38:22 +0000 (09:38 -0700)]
add support for multiple urls for route headers. (#276)

* add support for multiple urls for route headers.

add support in gpx for gpx/rte/link, gpx/rte/url, gpx/rte/urlname.
add support in gpx for gpx/trk/link, gpx/trk/url, gpx/trk/urlname.

Note that the gpx writer can violate the schema when fprint_xml_chain
is used to echo unrecognized elements from input to output.
This is because the gpx 1.0/1.1 schema requires an xsd:sequence of
elements, i.e. the order of the elements is specified, and any
elements output by fprint_xml_chain won't necessarily be in
the correct order with other elements that are specifically
handled in the gpx writer.

By processing additional gpx elements as listed above on read we
prevent them from causing schema violations on write.  However,
other unrecognized elements can still cause schema violations.

* make common link code common in gpx reader.

7 years agoDon't #include debug
Robert Lipe [Thu, 20 Dec 2018 04:50:06 +0000 (22:50 -0600)]
Don't #include debug

7 years agoA near rewrite of the reader of the stmsdf reader to more effectively parse fields...
Robert Lipe [Thu, 20 Dec 2018 04:24:41 +0000 (22:24 -0600)]
A near rewrite of the reader of the stmsdf reader to more effectively parse fields as QDate,Times,Floats, etc. Still not very readable, but should be more bulletproof for bad input.

7 years agoDon't name params in decls in itracku
Robert Lipe [Thu, 20 Dec 2018 04:21:00 +0000 (22:21 -0600)]
Don't name params in decls in itracku

7 years agoSign extension fix in EasyGPS
Robert Lipe [Thu, 20 Dec 2018 04:20:24 +0000 (22:20 -0600)]
Sign extension fix in EasyGPS

7 years agoRemove xstrrstr and BASE_STRUCT from defs.h
Robert Lipe [Thu, 20 Dec 2018 04:19:40 +0000 (22:19 -0600)]
Remove xstrrstr and BASE_STRUCT from defs.h

7 years agoRemove write-only variable in compegps.
Robert Lipe [Thu, 20 Dec 2018 04:19:05 +0000 (22:19 -0600)]
Remove write-only variable in compegps.

7 years agoDrop some unused method protos from CET.
Robert Lipe [Thu, 20 Dec 2018 04:18:29 +0000 (22:18 -0600)]
Drop some unused method protos from CET.

7 years agoXmlStreamWriter: make single arg methods explicit. Drop unused methods.
Robert Lipe [Thu, 20 Dec 2018 04:15:01 +0000 (22:15 -0600)]
XmlStreamWriter: make single arg methods explicit. Drop unused methods.

7 years agoClean up missed spot for ghosting htmlencoding files
Robert Lipe [Wed, 19 Dec 2018 08:10:29 +0000 (02:10 -0600)]
Clean up missed spot for ghosting  htmlencoding files

7 years agoRemoving scraggling bits of xhtmlent from build files.
Robert Lipe [Wed, 19 Dec 2018 05:44:48 +0000 (23:44 -0600)]
Removing scraggling bits of xhtmlent from build files.

7 years agoRemove (now) unused xhtmlent table.
Robert Lipe [Wed, 19 Dec 2018 05:25:09 +0000 (23:25 -0600)]
Remove (now) unused xhtmlent table.

7 years agoMake types in ggv_bin more safe for 32/64 systems.
Robert Lipe [Wed, 19 Dec 2018 04:56:45 +0000 (22:56 -0600)]
Make types in ggv_bin more safe for 32/64 systems.

7 years agoDefault construct to eliminate warning in geojson
Robert Lipe [Wed, 19 Dec 2018 04:49:13 +0000 (22:49 -0600)]
Default construct to eliminate warning in geojson

7 years agoBuild fix for Cmake/CLion on Mac. Correct handling of frameworks. They're like
Robert Lipe [Wed, 19 Dec 2018 03:52:14 +0000 (21:52 -0600)]
Build fix for Cmake/CLion on Mac. Correct handling of frameworks. They're like
libs, but not...

7 years agoadd cppcheck target to GPSBabel.pro. (#280)
tsteven4 [Fri, 14 Dec 2018 14:24:23 +0000 (07:24 -0700)]
add cppcheck target to GPSBabel.pro. (#280)

* add cppcheck target to GPSBabel.pro.

fix a few cppcheck errors.

* fix a few cppcheck items.

strptime fix is from upstream.

7 years agoWrap (use) of variables in #defines.
Robert Lipe [Tue, 4 Dec 2018 06:47:36 +0000 (00:47 -0600)]
Wrap (use) of variables in #defines.

7 years agoWarning fix in raymarine
Robert Lipe [Mon, 3 Dec 2018 06:47:50 +0000 (00:47 -0600)]
Warning fix in raymarine

7 years agoWarning fix in locus
Robert Lipe [Mon, 3 Dec 2018 06:46:02 +0000 (00:46 -0600)]
Warning fix in locus

7 years agoFix warning in maggeo
Robert Lipe [Mon, 3 Dec 2018 06:43:29 +0000 (00:43 -0600)]
Fix warning in maggeo

7 years agoWarning fixes in jeeps: move use closer to initialization so that the
Robert Lipe [Mon, 3 Dec 2018 06:37:29 +0000 (00:37 -0600)]
Warning fixes in jeeps: move use closer to initialization so that the
test of device is effective, don't set locals before return.

7 years agoTame string formatting warning in libusb.
Robert Lipe [Mon, 3 Dec 2018 06:34:13 +0000 (00:34 -0600)]
Tame string formatting warning in libusb.

7 years agoRemove unneeded const qualifier on pass-by-value types.
Robert Lipe [Mon, 3 Dec 2018 06:16:39 +0000 (00:16 -0600)]
Remove unneeded const qualifier on pass-by-value types.

7 years agoReplace size() == 0 with empty() when more readable.
Robert Lipe [Mon, 3 Dec 2018 06:05:08 +0000 (00:05 -0600)]
Replace size() == 0 with empty() when more readable.

7 years agoConst-ipate jeeps function signature. (Yeah, coz THAT makes that API beautiful...)
Robert Lipe [Mon, 3 Dec 2018 05:58:26 +0000 (23:58 -0600)]
Const-ipate jeeps function signature. (Yeah, coz THAT makes that API beautiful...)

7 years agoAutomated cleanups for passing by reference and fixing pointer ownership on calls.
Robert Lipe [Mon, 3 Dec 2018 05:50:03 +0000 (23:50 -0600)]
Automated cleanups for passing by reference and fixing pointer ownership on calls.

7 years agoModernize loop iterators to walk arrays and containes instead of independently
Robert Lipe [Mon, 3 Dec 2018 05:45:25 +0000 (23:45 -0600)]
Modernize loop iterators to walk arrays and containes instead of independently
maintained constants.

7 years agoModernize C style explicit (void) in decls to (), eliminate return
Robert Lipe [Mon, 3 Dec 2018 05:41:22 +0000 (23:41 -0600)]
Modernize C style explicit (void) in decls to (), eliminate return
at end of bunction bodies.

7 years agoModernize bool use of true/false.
Robert Lipe [Mon, 3 Dec 2018 05:35:53 +0000 (23:35 -0600)]
Modernize bool use of true/false.

7 years agoMake prototype arg names match function arg names.
Robert Lipe [Mon, 3 Dec 2018 05:34:28 +0000 (23:34 -0600)]
Make prototype arg names match function arg names.

7 years agoPick up a few old NULL->nullptr conversions that are stuck inside __APPLE that
Robert Lipe [Mon, 3 Dec 2018 04:49:33 +0000 (22:49 -0600)]
Pick up a few old NULL->nullptr conversions that are stuck inside __APPLE that
tsteven4 dodged around since he couldn't confirm.

7 years agoFor single argument ctors, mark type explicit.
Robert Lipe [Mon, 3 Dec 2018 04:45:41 +0000 (22:45 -0600)]
For single argument ctors, mark type explicit.

7 years agoIf there's only one argument in a ctor, mark it explicit to make it less
Robert Lipe [Mon, 3 Dec 2018 04:39:59 +0000 (22:39 -0600)]
If there's only one argument in a ctor, mark it explicit to make it less
easy to fall into implicit conversions.

7 years agoDiff and Terrain in geocaches are integers internally.
Robert Lipe [Mon, 3 Dec 2018 04:35:22 +0000 (22:35 -0600)]
Diff and Terrain in geocaches are integers internally.

7 years agogenerate html coverage reports. (#281)
tsteven4 [Sun, 2 Dec 2018 23:52:22 +0000 (16:52 -0700)]
generate html coverage reports. (#281)

* generate html coverage reports.

* tweak coverage recipe.

7 years agoremove obsolete msvc workarounds. (#278)
tsteven4 [Sat, 1 Dec 2018 15:03:37 +0000 (08:03 -0700)]
remove obsolete msvc workarounds. (#278)

msvc 2012 and earlier are not supported.
They didn't support c++14 anyway which we currently require.

7 years agouse QThread::usleep instead of our own function. (#277)
tsteven4 [Wed, 28 Nov 2018 14:00:10 +0000 (07:00 -0700)]
use QThread::usleep instead of our own function. (#277)

Our test suite doesn't test sleep, but the nmea pause option
can be used on write to verify functionality interactively.

7 years agoobsolete DEBUG_MEM (#279)
tsteven4 [Wed, 28 Nov 2018 01:48:17 +0000 (18:48 -0700)]
obsolete DEBUG_MEM (#279)

7 years agosimplify conversion from utm. (#275)
tsteven4 [Tue, 27 Nov 2018 23:37:49 +0000 (16:37 -0700)]
simplify conversion from utm. (#275)

* simplify conversion from utm.

add test cases for Norway and Svalbard exceptions.

* Correct bug in computing latitude band X.

enhance test to cover exceptional width of band X.

7 years agoupdate shapelib to 1.4.1 (#274)
tsteven4 [Sat, 24 Nov 2018 18:59:45 +0000 (11:59 -0700)]
update shapelib to 1.4.1 (#274)

7 years agoenhance sort filter for rtes & trks. (#273)
tsteven4 [Mon, 19 Nov 2018 18:54:46 +0000 (11:54 -0700)]
enhance sort filter for rtes & trks. (#273)

7 years agouse bool, true, false. (#272)
tsteven4 [Sat, 17 Nov 2018 22:06:31 +0000 (15:06 -0700)]
use bool, true, false. (#272)

7 years agoadd msvc2017 builds to appveyor. (#270)
tsteven4 [Wed, 14 Nov 2018 16:41:06 +0000 (09:41 -0700)]
add msvc2017 builds to appveyor. (#270)

7 years agoupdate docker build script to use latest bionic. (#269)
tsteven4 [Wed, 14 Nov 2018 15:42:28 +0000 (08:42 -0700)]
update docker build script to use latest bionic. (#269)

7 years agoMerge pull request #266 from tsteven4/clazy1
tsteven4 [Wed, 14 Nov 2018 15:09:23 +0000 (08:09 -0700)]
Merge pull request #266 from tsteven4/clazy1

Incorporate improvements found by Qt oriented code checker clazy

7 years agoMerge pull request #267 from gpsbabel/gpsbabel-patch-2
GPSBabel [Wed, 14 Nov 2018 02:42:14 +0000 (20:42 -0600)]
Merge pull request #267 from gpsbabel/gpsbabel-patch-2

Remove leftover code from 'adding class' change

7 years agoRemove leftover code from 'adding class' change
GPSBabel [Tue, 13 Nov 2018 21:07:09 +0000 (15:07 -0600)]
Remove leftover code from 'adding class' change

As tsteven4 points out, No reasing to move is_internal to local and back

7 years agofix clazy detected 'use isEmpty() instead'
tsteven4 [Tue, 13 Nov 2018 15:53:34 +0000 (08:53 -0700)]
fix clazy detected 'use isEmpty() instead'

this is from -Wclazy-isempty-vs-count

7 years agofix clazy detected 'Use *Ref() instead'
tsteven4 [Tue, 13 Nov 2018 15:30:46 +0000 (08:30 -0700)]
fix clazy detected 'Use *Ref() instead'

These are from -Wclazy-qstring-ref, and were automatically fixed.

7 years agofix clazy detected 'unused *'
tsteven4 [Tue, 13 Nov 2018 15:18:09 +0000 (08:18 -0700)]
fix clazy detected 'unused *'

these are from -Wclazy-unused-non-trivial-variable

7 years agofix clazy detected 'allocating an unneeded temporary container'
tsteven4 [Tue, 13 Nov 2018 14:59:10 +0000 (07:59 -0700)]
fix clazy detected 'allocating an unneeded temporary container'

these are from -Wclazy-container-anti-pattern

Also, consistently use range based for loops in csv_util.cc